//
//  WPDataMap.h
//  PhnixHome
//
//  Created by Levy Xu on 2018/3/6.
//  Copyright © 2018年 Levy Xu. All rights reserved.
//

#import <Foundation/Foundation.h>

@interface WPData : NSObject
@property(nonatomic, assign) NSInteger Switch;
@property(nonatomic, assign) NSInteger Status;
@property(nonatomic, assign) NSInteger Wash;
@property(nonatomic, assign) NSInteger PureWaterTDS;
@property(nonatomic, assign) NSInteger Waterflow;
@property(nonatomic, assign) NSInteger Worktime;

@property(nonatomic, assign) NSInteger LifeTime_Filter1;
@property(nonatomic, assign) NSInteger LifeTime_Filter2;
@property(nonatomic, assign) NSInteger LifeTime_Filter3;
@property(nonatomic, assign) NSInteger LifeTime_Filter4;
@property(nonatomic, assign) NSInteger UsedTime_Filter1;
@property(nonatomic, assign) NSInteger UsedTime_Filter2;
@property(nonatomic, assign) NSInteger UsedTime_Filter3;
@property(nonatomic, assign) NSInteger UsedTime_Filter4;

@property(nonatomic, assign) NSInteger Reserve1;
@property(nonatomic, assign) NSInteger Reserve2;

-(UIImage *)waterLevelImage;

-(UIColor *)waterLevelColor;

-(NSString *)waterLevelTips;

-(NSString *)statusString;

-(NSString *)stringForAlert;

-(NSInteger)filter_left:(NSInteger)index;

-(NSInteger)filter_used:(NSInteger)index;

-(NSInteger)filter_life:(NSInteger)index;

+(NSString *)filterKey:(NSInteger)index;

+(NSString *)filterString:(NSInteger)index;

+(UIImage *)filterImage:(NSInteger)index;

+(NSString *)filter_url:(NSInteger)index;

+(NSAttributedString *)attributedStatusString:(NSString *)text;

@end

@interface WPFault : NSObject
@property(nonatomic, assign) NSInteger Fault;
@end

@interface WPDataMap : NSObject
@property(nonatomic, strong) NSDictionary *alerts;
@property(nonatomic, strong) WPData *data;
@property(nonatomic, strong) WPFault *faults;
@end
